package com.gxh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.gxh.dto.RequestMachinePageQueryDTO;
import com.gxh.entity.UserRequestMachine;
import com.gxh.vo.UserRequestMachineVO;

import java.util.List;

public interface UserRequestMachineMapper extends BaseMapper<UserRequestMachine> {
    /**
     * 用户求购设备列表
     * @param status
     * @param userId
     * @return
     */
    List<UserRequestMachineVO> listRequest(Integer status, Long userId);

    /**
     * 用户求购设备分页查询
     * @param requestMachinePageQueryDTO
     * @return
     */
    Page<UserRequestMachineVO> requestPageQuery(RequestMachinePageQueryDTO requestMachinePageQueryDTO);
}
